home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / texinfo / makeinfo / Makefile.in < prev    next >
Makefile  |  1994-01-28  |  3KB  |  108 lines

  1. # Makefile for GNU makeinfo.  -*- Indented-Text -*-
  2. # Copyright (C) 1993 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. #### Start of system configuration section. ####
  19.  
  20. srcdir = @srcdir@
  21. VPATH = $(srcdir):$(common)
  22.  
  23. common = $(srcdir)/../libtxi
  24.  
  25. CC = @CC@
  26. INSTALL = @INSTALL@
  27. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  28. INSTALL_DATA = @INSTALL_DATA@
  29.  
  30. LN    = ln
  31. RM    = rm -f
  32. TAR    = tar
  33. MKDIR    = mkdir
  34. COMPRESS= compress
  35.  
  36. DEFS = @DEFS@
  37. LIBS = -L../libtxi -ltxi @LIBS@
  38. LOADLIBES = $(LIBS)
  39.  
  40. SHELL = /bin/sh
  41.  
  42. CFLAGS = -g
  43. LDFLAGS = -g
  44.  
  45. prefix = /usr/local
  46. exec_prefix = $(prefix)
  47. bindir = $(exec_prefix)/bin
  48. # Prefix for each installed program, normally empty or `g'.
  49. binprefix = 
  50. libdir = $(prefix)/lib
  51. # Prefix for each installed man page, normally empty or `g'.
  52. manprefix = 
  53. mandir = $(prefix)/man/man1
  54. manext = 1
  55. infodir = $(prefix)/info
  56.  
  57. #### End of system configuration section. ####
  58.  
  59. SRCS =  makeinfo.c
  60. OBJS =  makeinfo.o
  61.  
  62. PROGS = makeinfo
  63.  
  64. all: $(PROGS) makeinfo.info
  65. sub-all: all
  66.  
  67. .c.o:
  68.     $(CC) -c $(CPPFLAGS) -I. -I$(srcdir) -I$(common) $(DEFS) $(CFLAGS) $<
  69.  
  70. makeinfo: $(OBJS) ../libtxi/libtxi.a
  71.     $(CC) $(LDFLAGS) -o makeinfo $(OBJS) $(LOADLIBES)
  72.  
  73. makeinfo.o: makeinfo.c $(common)/getopt.h
  74.  
  75. makeinfo.info: makeinfo makeinfo.texi
  76.     ./makeinfo --no-split -I$(srcdir) makeinfo.texi
  77.  
  78. install: all
  79.     for f in $(PROGS); do $(INSTALL_PROGRAM) $$f $(bindir)/$(binprefix)$$f; done
  80.     -d=$(srcdir); test -f ./makeinfo.info && d=.; $(INSTALL_DATA) $$d/makeinfo.info $(infodir)/makeinfo.info
  81.  
  82. uninstall:
  83.     for f in $(PROGS); do rm -f $(bindir)/$(binprefix)$$f; done
  84.     rm -f $(infodir)/makeinfo.info
  85.  
  86. TAGS: $(SRCS)
  87.     etags $(SRCS)
  88.  
  89. clean:
  90.     rm -f *.o a.out core core.* $(PROGS)
  91.  
  92. mostlyclean: clean
  93.  
  94. distclean: clean
  95.     rm -f Makefile config.status
  96.  
  97. realclean: distclean
  98.     rm -f TAGS
  99.     rm -f makeinfo.info
  100.  
  101. Makefile: Makefile.in ../config.status
  102.     cd ..; sh config.status
  103.  
  104. # Prevent GNU make v3 from overflowing arg limit on SysV.
  105. .NOEXPORT:
  106.  
  107. # eof
  108.